package com.ysd.lis.controller.lab;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.lab.LabInspectCompanyUser;
import com.ysd.lis.request.lab.CompFeeDto;
import com.ysd.lis.request.lab.CompanyPageParam;
import com.ysd.lis.service.lab.LabInspectCompanyUserService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 * 送检单位对照用户 前端控制器
 * </p>
 *
 * @author WH
 * @since 2024-10-21
 */
@RestController
@RequestMapping("/lab/inspectCompanyUser")
public class LabInspectCompanyUserController extends BaseController {

    @Autowired
    private LabInspectCompanyUserService labInspectCompanyUserService;


    @ApiOperation("查询")
    @GetMapping("/findInspectCompanyUserList")
    public Result findInspectCompanyUserList(CompanyPageParam param){
        return labInspectCompanyUserService.findInspectCompanyUserList(param);
    }
    @ApiOperation("新增")
    @PostMapping("/addCompanyUser")
    public Result addCompanyUser(@RequestBody LabInspectCompanyUser companyUser) {
        return labInspectCompanyUserService.addCompanyUser(companyUser);
    }

    @ApiOperation("批量删除")
    @PostMapping("/batchDeleteCompanyUserList")
    public Result batchDeleteCompanyUserList(@RequestBody List<LabInspectCompanyUser> list){
        return  labInspectCompanyUserService.batchDeleteCompanyUserList(list);
    }
}
